package com.jacpy.sb.utils;

import com.jacpy.sb.model.StationInfo;

import java.util.ArrayList;

public class Netdataanalysis {

    public Netdataanalysis() {

    }

    public StationInfo[] analyseStationName(String resStr) {
        resStr = resStr.trim();
        String[] data = resStr.split("\n");
        StationInfo[] list = new StationInfo[data.length];
        ArrayList staNames=new ArrayList();
        for (int i = 0; i < data.length; i++) {
            StationInfo info = new StationInfo();
            String datainfo = data[i].trim();
            String[] dataitems= datainfo.split(" ");
            list[i].setStationName(dataitems[0]);
        }
        return list;
    }
}
